numeric function in discrete mathematics